package com.upcode.weighing.admin.controller.sys;


import com.upcode.weighing.base.controller.BaseController;
import com.upcode.weighing.log.OpsLog;
import com.upcode.weighing.service.SysOptLogService;
import com.upcode.weighing.vo.log.SysLogsPageListVo;
import com.upcode.weighing.vo.req.PageReqVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * app用户登录表 前端控制器
 * </p>
 *
 * @author alex
 * @since 2019-05-17
 */
@Controller
@RequestMapping("/sysoptlog")
public class SysOptLoginLogController extends BaseController {
    @Autowired
    private SysOptLogService sysOptLogService;

    @OpsLog(operation = "系统管理/操作日志/查询",type = 1)
    @ApiOperation(value = "系统登陆日志分页列表",notes ="")
    @PostMapping(value = "/list")
    public Object list(@RequestBody PageReqVo<SysLogsPageListVo> vo) {
        return success(sysOptLogService.selectPageList(vo));
    }
}
